namespace RMM.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class add_shop : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.RMM_Shop",
                c => new
                    {
                        Id = c.Long(nullable: false, identity: true),
                        ShopName = c.String(),
                        OpenBeginTime = c.DateTime(nullable: false),
                        OpenEndTime = c.DateTime(nullable: false),
                        Address = c.String(),
                        ApprovalStatus = c.Int(nullable: false),
                        ApprovalRemake = c.String(),
                        ProjectId = c.Int(nullable: false),
                        CreatorUserId = c.Long(),
                        CreationTime = c.DateTime(nullable: false),
                        LastModifierUserId = c.Long(),
                        LastModificationTime = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
            CreateTable(
                "dbo.RMM_ShopProject",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        ShopId = c.Long(nullable: false),
                        ProjectName = c.String(),
                        ClassId = c.Int(nullable: false),
                        Price = c.Decimal(nullable: false, precision: 18, scale: 2),
                        ShopPrice = c.Decimal(nullable: false, precision: 18, scale: 2),
                        ProjectTime = c.Int(nullable: false),
                        Addition = c.String(),
                        Description = c.String(),
                        CreatorUserId = c.Long(),
                        CreationTime = c.DateTime(nullable: false),
                        LastModifierUserId = c.Long(),
                        LastModificationTime = c.DateTime(),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.RMM_ShopProject");
            DropTable("dbo.RMM_Shop");
        }
    }
}
